package com.timerecording.dao.newSystem;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.timerecording.domain.entity.RecordTimeEntity;
import com.timerecording.domain.entity.newSystem.NewRecordTimeEntity;
import com.timerecording.domain.vo.newSystem.NewRecordTimeVO;
import com.timerecording.util.ResponseDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface NewRecordTimeDao extends BaseMapper<NewRecordTimeEntity> {


    /**
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/8/4
     */

    List<NewRecordTimeVO> queryNewRecordTime(@Param("startTime")String recordStartDate, @Param("endTime")String recordEndDate, @Param("toDayTime") String toDayTime, @Param("deleteFlag")Integer deleteFlag);

    /** 逻辑删除工时记录  修改状态为删除
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/9/8
     */

    void updateDeleteById(@Param("recordId")Integer recordId);

    /** 恢复逻辑删除工时记录  修改状态为正常
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/9/8
     */

    void recoverSalaryById(@Param("recordId") Integer recordId);

    /**
     * 查询工时详情
     * @param recordId
     * @return
     */
    NewRecordTimeEntity selectRecordTimeInfo(@Param("recordId") Integer recordId);
}
